Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rootmodule: Fix schema/module update detection #183

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Jun 24, 2020

This is fixing a bug where we would detect plugin lock file change as module change and vice versa. Therefore the server would attempt to update plugins when module change and update module cache when plugins change. This could lead to a situation where obtaining schema errors out because the plugin lock file wasn't written to the disk yet (modules are updated first during init).

This was introduced as part of #167 (so far unreleased 😅 )

The watcher logic is entirely untested at this point - something to address.

I'm just not sure what the best testing strategy there is yet. Should we entirely mock out the watcher, or genuinely update real files on the filesystem in TMPDIR? I feel like that question needs to be answered, but I'd like to answer it in a separate PR.

@radeksimko radeksimko added the bug Something isn't working label Jun 24, 2020
@radeksimko radeksimko force-pushed the b-fix-schema-update-detection branch from 45ae701 to 567ca38 Compare June 24, 2020 15:13
@radeksimko radeksimko changed the title rootmodule: Fix schema update detection rootmodule: Fix schema/module update detection Jun 24, 2020
@radeksimko radeksimko force-pushed the b-fix-schema-update-detection branch from 567ca38 to 9525354 Compare June 24, 2020 15:16
@radeksimko radeksimko merged commit 877e8b2 into master Jun 24, 2020
@radeksimko radeksimko deleted the b-fix-schema-update-detection branch June 24, 2020 19:48
@ghost
Copy link

ghost commented Jul 24, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the context necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Jul 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants